package com.gopay.common.trace.httpclient;

import com.gopay.common.trace.helper.LogAbstractHelper;
import com.gopay.common.trace.support.LogContext;
import org.apache.http.protocol.HttpContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author ddh02
 * @HttpInterceptorBase
 * @2017/5/15 9:07  www.gopay.com.cn Inc.All rights reserved.
 */


public class HttpInterceptorBase {

    protected Logger logger = null;

    protected static final String HELPER_TAG = "_helper_";

    protected LogAbstractHelper getHelper(HttpContext httpContext) {

        return (LogAbstractHelper) httpContext.getAttribute(HELPER_TAG);
    }


    public HttpInterceptorBase() {
        this.logger = LoggerFactory.getLogger(this.getClass());
    }

}
